# -*- coding: utf-8 -*-
"""
书籍有书名，出版社，作者，出版日期等信息，定义方法，输出书籍信息

"""
class box:
    def __init__(self,name,press,author,pub):
        self.name=name
        self.press=press
        self.author=author
        self.pub=pub
        
        
        
    def mz(self):
        return self.name
    def cbs(self):
        return self.press
    def zz(self):
        return self.author
    def cbrq(self):
        return self.pub
        
    
        
    
if __name__ == '__main__': 
    a=box('Harrypotter','Bloomsbury','J.K.Rowling','1997.6.30')
    print(a.mz())
    print(a.cbs())
    print(a.zz())
    print(a.cbrq())
    
   
    
        
        

